﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace An_Im.Expression.Model
{
    /// <summary>
    /// 在存档中的关键帧信息。
    /// </summary>
    public class SavedKeyPointInformation
    {
        /// <summary>
        /// 收藏的动画的名称。
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 起点变量值
        /// </summary>
        public string FromValue { get; set; }

        /// <summary>
        /// 终点变量值
        /// </summary>
        public string ToValue { get; set; }

        /// <summary>
        /// 表达式值
        /// </summary>
        public string Formula { get; set; }


        public override string ToString()
        {
            return Name;
        }

        public SavedKeyPointInformation(string name, string fromvalue, string tovalue, string formula)
        {
            Name = name;
            FromValue = fromvalue;
            ToValue = tovalue;
            Formula = formula;
        }

    }
}
